import * as apiService from '@/services/api'

/**
 * 实时数据
 * @return {Promise<*>}
 */
const dashboardRealTimeDataApi = () => {
  return apiService.post(api.DASHBOARD_REAL_TIME_DATA);
};

/**
 * 存款top10
 * @return {Promise<*>}
 */
const dashboardRechargeTop10Api = ({num}) => {
  return apiService.post(api.DASHBOARD_RECHARGE_TOP10,{num});
};

/**
 * 取款top10
 * @return {Promise<*>}
 */
const dashboardWithdrawTop10Api = ({num}) => {
  return apiService.post(api.DASHBOARD_WITHDRAW_TOP10,{num});
};

/**
 * 盈利top10
 * @return {Promise<*>}
 */
const dashboardProfitTop10Api = ({num}) => {
  return apiService.post(api.DASHBOARD_PROFIT_TOP10,{num});
};

/**
 * 亏损top10
 * @return {Promise<*>}
 */
const dashboardLossTop10Api = ({num}) => {
  return apiService.post(api.DASHBOARD_LOSS_TOP10,{num});
};

/**
 * 本月数据总和
 * @returns {Promise<*>}
 */
const dashboardMonthlyDataApi = () => {
  return apiService.post(api.DASHBOARD_MONTHLY_DATA);
};

/**
 * 游戏平台投注量
 * @returns {Promise<*>}
 */
const dashboardBettingDataApi = () => {
  return apiService.post(api.DASHBOARD_BETTING_DATA);
};

/**
 * 总输赢
 * @returns {Promise<*>}
 */
const dashboardProfitDataApi = () => {
  return apiService.post(api.DASHBOARD_PROFIT_DATA);
};

export {
  dashboardRealTimeDataApi,
  dashboardRechargeTop10Api,
  dashboardWithdrawTop10Api,
  dashboardProfitTop10Api,
  dashboardLossTop10Api,
  dashboardMonthlyDataApi,
  dashboardBettingDataApi,
  dashboardProfitDataApi,
};
